package xml_tests.XMLParsing;

/**
 *
 * @author Ganesh Tiwari
 */
public class Main {

    static String fileName = "catalog.xml";

    public static void main(String[] args) {
    	
    	new XmlTagsWithLinesTree(fileName);

//        Jdom jd = new Jdom();
//        System.out.println("===================\nCreating xml doucument using jdom\n===================");
//        jd.createXML();
//        jd.displayXML();
//        jd.saveXMLtofile(fileName);
//        //parse using JDom
//        System.out.println("===================\nParsing using jdom, jdom Tree--  \n===================");
//        try {
//            jd.jDomTree(fileName);
//        } catch (Exception ex) {
//            System.out.println(ex.toString());
//        }
    	
    	
    	
    	
    	
        //////sax parser
//        SaxNoTags sp = new SaxNoTags();
//        sp.setFile(fileName);
////        System.out.println("===================\nParsing suing Sax...             \n===================");
//        try {
//            sp.parseXML();
//        } catch (Exception ex) {
//            System.out.println(ex.toString());
//        }
    }
}
